<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabs-container">
                <ul class="nav nav-tabs">
                    <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">网站信息</a></li>
                    <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">基本设置</a></li>
                </ul>
                <form method="post" class="form-horizontal">
                    <div class="tab-content" style="background: #FFFFFF;">
                        <!--基本信息-->
                        <div id="tab-1" class="tab-pane active">
                            <div class="panel-body">
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站标题</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="title" value="{$system.title}" required>
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站关键字</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="keywords" value="{$system.keywords}" required>
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站描述</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="description" value="{$system.description}" required>
                                    </div>
                                </div>


                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站LOGO</label>
                                    <div class="col-sm-3" id="file-pretty">
                                        <div class="input-append input-group">
                                            <span class="input-group-btn">
                                                <button class="btn btn-white" type="button" onclick="GetUploadify(1,'','goods','call_back');">选择文件</button>
                                            </span>
                                            <input class="input-large form-control" id="original_img_input" type="text" name="logo" value="{$system.logo}">
                                        </div>
                                    </div>
                                    <div class="col-sm-1" id="original_img" style="position: relative;">
                                        {if condition="$system['logo']"}
                                            <img src="{$system.logo}" alt="" class="goods-image" style="height:34px">
                                            <div style="position:absolute;bottom:0;left:65px;display:none;border: 1px solid #ccc;"><img src="{$system.logo}" alt="" style="max-width: 500px;z-index: 999"></div>
                                        {/if}
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">公司名称或个人姓名</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="name" value="{$system.name}">
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">联系电话</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="mobile" value="{$system.mobile}">
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">地址</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="address" value="{$system.address}">
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div id="tab-2" class="tab-pane">
                            <div class="panel-body">

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排队提醒文字</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="queue_number" value="{$system.queue_number}" placeholder="'%'为数量参数，如：前面有%个订单正在排队">
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">新用户注册赠送服务券</label>
                                    <div class="col-sm-3">
                                        <div class="input-group">
                                            <span class="input-group-addon">服务</span>
                                            <select name="reg_give" class="form-control">
                                                <option value="">请选择</option>
                                                {foreach name="goods" item="item"}
                                                    <option value="{$item.id}" {if condition="$item['id'] eq $system['reg_give']"}selected{/if}>{$item.goods_name}</option>
                                                {/foreach}
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="input-group"><span class="input-group-addon">赠送券数</span>
                                            <input type="number" name="reg_give_number" value="{$system.reg_give_number}"  class="form-control" placeholder="请输入数字">
                                        </div>
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">首充赠送服务券</label>
                                    <div class="col-sm-3">
                                        <div class="input-group">
                                            <span class="input-group-addon">服务</span>
                                            <select name="recharge_give" class="form-control">
                                                <option value="">请选择</option>
                                                {foreach name="goods" item="item"}
                                                    <option value="{$item.id}" {if condition="$item['id'] eq $system['recharge_give']"}selected{/if} >{$item.goods_name}</option>
                                                {/foreach}
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-2">
                                        <div class="input-group"><span class="input-group-addon">赠送券数</span>
                                            <input type="number" name="recharge_give_number" value="{$system.recharge_give_number}" class="form-control" placeholder="请输入数字">
                                        </div>
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">最低充值金额</label>
                                    <div class="col-sm-10">
                                        <input type="number" class="form-control" name="min_recharge" value="{$system.min_recharge}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" style="padding: 20px">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="button" onclick="history.back()">取消</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


<script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/dist/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/dist/js/plugins/switchery/switchery.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/global.js?v=1&rnd=12345678"> </script>
<script>
    function call_back(fileurl_tmp){
        $("#original_img").html('<img src="'+fileurl_tmp+'" alt="" style="height:34px">');
        $('#original_img_input').val(fileurl_tmp);
    }
</script>

</body>

</html>
